<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" href="/group/css/styles.css" type="text/css">

</head>


<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<table width=100% style="background: #ffffff" cellspacing=0
	cellpadding=0>
	<tr>
		<td>
		<table width=100% cellspacing=0 cellpadding=0>
			<tr bgcolor="#E3EEFB">
				<td style="height: 50px; font-size: 14px; width: 300px;"><b>${context.my_followers}</b><font
					color=#808080>(${myFollowersCount})</font></td>
				<td align=right><c:set var="pid" value="${startpid }" /> <c:forEach
					begin="${startpid }" end="${endpid }" step="1">
					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${pid}" />

					<a href="${url }"
						<c:if test='${intpageid==pid }'>style="font-weight:bold;color:red;"</c:if>>[<c:out
						value='${pid}' />]</a>
					<c:set var="pid" value="${pid+1 }" />&nbsp;&nbsp;</c:forEach> <c:if
					test="${intpageid>1 }">
					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${intpageid-1}" />
					<a href="${url }"> [<c:out value='${context.previous_page}' />]
					</a>&nbsp;</c:if> <c:if test="${intpageid<pagenums }">
					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${intpageid+1}" />
					<a href="${url }"> [<c:out value='${context.next_page}' />] </a>
				</c:if></td>
			</tr>
		</table>
		</td>
	</tr>
	<c:if test="${myFollowersCount==0 }">
		<tr>
			<td align=center style="font-size: 12px; color: red;">${context.default_none
			}</td>
		</tr>

	</c:if>
	<c:forEach var="followedObject" items="${followers }">
		<c:set var="fromUser" value="${followedObject.fromUser }" />
		<c:set var="fromUserObject" value="${requestScope[fromUser] }" />
		<tr>
			<td>
			<table style="width: 660;">
				<tr>

					<td align=center width=110><a
						href="/group/viewUser<c:out value='${context.postfix }' />?targetUserName=<c:out value='${fromUser }' />"
						target=_blank><c:if
						test="${not empty fromUserObject.avatar&&fn:indexOf(fromUserObject.avatar,'upload')!=-1 }">
						<img src="${fromUserObject.avatar}" width=110 height=110 border=0 />
					</c:if><c:if
						test="${empty fromUserObject.avatar||fn:indexOf(fromUserObject.avatar,'upload')==-1 }">
						<img src="/group/images/avatar/avatar.jpg" width=115 height=115
							border=0 />
					</c:if> <c:out value="${fromUser }" /></a></td>

					<td valign=top>
					<table style="border: 1px solid #f2f2f2; margin-top: -3px;"
						width=400>


						<tr>
							<td
								style="width: 70px; height: 15px; font-size: 12px; color: #808080"
								nowrap><c:out value="${context.reg_time }" /></td>
							<td style="height: 15px; font-size: 12px; color: #005EAC" nowrap><c:out
								value="${fromUserObject.regTime }" /></td>
						</tr>
						<tr>
							<td style="height: 15px; font-size: 12px; color: #808080" nowrap><c:out
								value="${context.last_access }" /></td>
							<td style="height: 15px; font-size: 12px; color: #005EAC" nowrap><c:out
								value="${fromUserObject.lastTime }" /></td>
						</tr>
						<tr>
							<td style="height: 15px; font-size: 12px; color: #808080" nowrap><c:out
								value="${context.log_num }" /></td>
							<td style="height: 15px; font-size: 12px; color: #005EAC"><c:out
								value="${fromUserObject.loginNum }" /></td>
						</tr>
						<tr>
							<td colspan=2>
							<div style="height: 50px; overflow: hidden"><textarea
								readonly
								style="height: 40px; cursor: text; border: 2px solid #C5B1D8; font-size: 12px; color: #808080; overflow-y: visible"
								cols="40" rows="2 "><c:out
								value='${fromUserObject.sign }'
								default='${context.default_sign }' /></textarea></div>
							</td>
						</tr>
					</table>
					</td>

				</tr>

			</table>




			</td>
		</tr>
	</c:forEach>
	<tr>
		<td>&nbsp;</td>
	</tr>

	<tr>
		<td colspan=2>
		<table style="width: 100%;">

			<tr>
				<td height=30></td>
			</tr>
			<tr>
				<td align=left><c:set var="pid" value="${startpid }" /> <c:forEach
					begin="${startpid }" end="${endpid }" step="1">

					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${pid}" />

					<a href="${url }"
						<c:if test='${intpageid==pid }'>style="font-weight:bold;color:red;"</c:if>>[<c:out
						value='${pid}' />]</a>


					<c:set var="pid" value="${pid+1 }" />
&nbsp;&nbsp;</c:forEach> <c:if test="${intpageid>1 }">

					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${intpageid-1}" />


					<a href="${url }"> [<c:out value='${context.previous_page}' />]
					</a>
							 
								 
&nbsp;
</c:if> <c:if test="${intpageid<pagenums }">

					<c:set var="url"
						value="/group/myFollowers${context.postfix}?pageid=${intpageid+1}" />



					<a href="${url }"> [<c:out value='${context.next_page}' />] </a>



				</c:if></td>
			</tr>
		</table>
		</td>
	</tr>

</table>


</body>
</html>
